# Contributor: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
# Maintainer: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
pkgname=py3-pyo
_pkgname=pyo
pkgver=1.0.5
pkgrel=2
pkgdesc="dedicated Python module for digital signal processing"
url="http://ajaxsoundstudio.com/software/pyo/"
arch="all"
license="LGPL-3.0-or-later"
options="!check"
depends="python3 python3-tkinter"
makedepends="
	jack-dev
	libsndfile-dev
	portaudio-dev
	py3-gpep517
	py3-setuptools
	py3-wheel
	python3-dev
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/belangeo/pyo/archive/$pkgver.tar.gz
	portaudio-only.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--config-json '{"--build-option": ["--minimal", "--use-jack"]}' \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
4e48c255d87d61017b4f74ffa8e80af26964fc2948b0376ed638a773c5cc36e12e2553ff2e7762e2c8585a12882f63433e879a29700b89f5dd451fdbb9c2f5be  py3-pyo-1.0.5.tar.gz
105a93e4eb70caef709d248ae1eb2e8451b04d79fd7ec4fbd5c32c9da04317819114a31a1a215703cf309b21fed0009b8b11c313a1f66a8f623363ee3896b370  portaudio-only.patch
"
